<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/public/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/public/css/public.css" media="all"/>

</head>
<body class="childrenBody">
<form class="layui-form layui-col-lg-offset1 layui-col-lg10 lay-col-md12" id="editForm">
    <input type="hidden" name="id" value="{{id}}"/>
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>结算编号：</label>
            <div class="layui-input-block">
                <input type="text" name="settlementNumber" lay-verify="required" readonly value="{{settlementNumber}}"
                       class="layui-input"/>
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>付款日期：</label>
            <div class="layui-input-block">
                <input type="text" id="dateReceipt" name="dateReceipt" lay-verify="required" placeholder="请选择时间"
                       readonly
                       value="{{dateReceipt}}"
                       class="layui-input"/>
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>收款账户：</label>
            <div class="layui-input-block">
                <select id="paymentAccount" lay-search="" lay-verify="required" name="paymentAccount">
                    <option value="{{paymentAccount}}" selected>{{paymentAccount}}</option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>付款方类型：</label>
            <div class="layui-input-block">
                <select id="typePayer" lay-verify="required" name="typePayer" lay-filter="typePayerFilter">
                    <option value="">请选择</option>
                    {{if typePayer == 1}}
                    <option value="1" selected>个人</option>
                    <option value="2">单位</option>
                    {{else if typePayer == 2}}
                    <option value="1">个人</option>
                    <option value="2" selected>单位</option>
                    {{else}}
                    <option value="1">个人</option>
                    <option value="2">单位</option>
                    {{/if}}
                </select>
            </div>
        </div>
    </div>
    <div class="layui-col-md6 paymentUnit" style="display: none">
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>付款单位：</label>
            <div class="layui-input-block">
                <input type="hidden" id="paymentUnitVal" value="{{paymentUnit}}">
                <select id="paymentUnit" lay-verify="required" lay-search=""  name="paymentUnit" lay-filter="paymentUnit">
                </select>
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>付款人：</label>
            <div class="layui-input-block">
                <input type="text" name="drawee" value="{{drawee}}" lay-verify="required" placeholder="请输入付款人"
                       class="layui-input"/>
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>收款金额：</label>
            <div class="layui-input-block">
                <input type="text" name="paymentAmount" lay-verify="required" value="{{paymentAmount}}"
                       id="paymentAmount"
                       placeholder="请输入收款金额"
                       class="layui-input"/>
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label class="layui-form-label">收款人：</label>
            <div class="layui-input-block">
                {{thePayee}}
            </div>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-form-item">
            <label class="layui-form-label">收款时间：</label>
            <div class="layui-input-block">
                {{paymentTime}}
            </div>
        </div>
    </div>
    <div class="layui-col-md12">
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注：</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea" name="note" id="note">{{note}}</textarea>
            </div>
        </div>
    </div>

    <div class="layui-col-md12">
        <div class="layui-form-item">
            <div class="layui-input-block">
                <a class="layui-btn" lay-submit="" lay-filter="editVoucher">保存</a>
                <a onclick="layuiFunciton.closeOpen()" class="layui-btn layui-btn-primary">关闭</a>
            </div>
        </div>
    </div>
</form>
<script type="text/javascript" src="/public/js/jquery.min.js"></script>
<script type="text/javascript" src="/public/layui/layui.js"></script>
<script type="text/javascript" src="/js/public.function.js"></script>
<script type="text/javascript" src="js/edit.js"></script>
</body>
</html>